import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import { html2pdf } from 'html2pdf.js';
import 'html2pdf.js/dist/html2pdf.bundle.min.js';
import request from '@/utils/request'

// 配置axios默认值
axios.defaults.baseURL = '/api'

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.$axios = axios;
Vue.prototype.$html2pdf = html2pdf;
Vue.prototype.$http = request

new Vue({
    router,
    render: function (h) { return h(App) }
}).$mount('#app')
